package com.pipayshop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("withdrawal_commission")
@Schema(description="提现手续费表")
public class WithdrawalCommission implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message="[]不能为空")
    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty("手续费")
    @TableField("service_charge")
    private BigDecimal serviceCharge;

    @ApiModelProperty("逻辑删除（0：未删1：软删 2：硬删）")
    @TableField("del_flag")
    private Integer delFlag;
}
